from injector import inject


class A:
    name: str = "llmops"


@inject
class B:
    def __init__(self, a: A):
        self.a = a

    def print(self):
        print(self.a.name)


list = {"query": ["请求字段不能为空"]}
key = next(iter(list))

print(list.get(key)[0])
# injector = Injector()
# b = injector.get(B)
# b.print()
